package com.youlai.boot.system.model.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.*;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import com.youlai.boot.common.base.BaseEntity;

/**
 * 配送任务表
 *
 * @author youlaitech
 * @since 2025-02-25 22:01
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("gb_task_assignment")
public class TaskAssignment extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 回收请求主表id
     */
    private Long requestId;
    /**
     * 配送员用户id
     */
    private Long courierId;

    /**
     * 回收至机构的id
     */
    private Long orgId;
    /**
     * 任务分配开始时间
     */
    private LocalDateTime assignedTime;
    /**
     * 任务实际完成时间
     */
    private LocalDateTime completedTime;

    /**
     * 已经上门回收垃圾（0：否，1：是）
     */
    private Integer isReceived;
    /**
     * 是否删除(0-否 1-是)
     */
    @TableLogic
    private Integer isDeleted;
    private Long createBy;
    private Long updateBy;
}
